<?php $linkAdd = $this->baseUrl( '/admin/chinhanh/them');?>
<div><a href="<?php echo $linkAdd ?>" title="Add">Thêm mới chi  nhánh</a></div>
<form id="mainform" action="">
				<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
				<tr>
					<th class="table-header-check"><a id="toggle-all" ></a> </th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">Tên chi nhánh</a>	</th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">Địa chỉ</a></th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">Điện thoại</a></th>
					<th class="table-header-options line-left"><a href="">Options</a></th>
				</tr>
				
				
<?php
	foreach($this->chinhanh as $chinhanh)
	{
		$id = $chinhanh->getId();
		$tenchinhanh = $chinhanh->getTenchinhanh();
		$diachi = $chinhanh->getDiachi();
		$dienthoai = $chinhanh->getDienthoai();
		
		$linkEdit = $this->baseUrl('/admin/chinhanh/capnhat/id/'. $id);
		$linkDelete = $this->baseUrl('/admin/chinhanh/xoa/id/'. $id);
?>
	<tr>
					<td><input  type="checkbox"/></td>
					<td><?php echo $tenchinhanh?></td>
					<td><?php echo $diachi?></td>
					<td><?php echo $dienthoai?></td>
					
					<td class="options-width">
					<a href="<?php echo $linkEdit?>" title="Edit" class="icon-1 info-tooltip">Edit</a>
					<a href="<?php echo $linkDelete?>" title="Edit" class="icon-2 info-tooltip">Delete</a>
					<a href="" title="Edit" class="icon-3 info-tooltip"></a>
					<a href="" title="Edit" class="icon-4 info-tooltip"></a>
					<a href="" title="Edit" class="icon-5 info-tooltip"></a>
					</td>
				</tr>
<?php
			
	} 
?>
			</table>
				<!--  end product-table................................... -->
				</form>
